<div id="bingkaiforumatas"> 
	<div id="bingkiri">
		<div id="alamat2">Schedule:</div>
		<h1 class="heading1">Weekly Schedule</h1>
		<div id="alamat"><?php echo $title?></div>
	</div>
	<div id="bingkanan">
	</div>
	<div class="clear"></div>
</div>
<div id="bingkaiforum">
	<div id="puma">
            <?php 
                echo $this->load->view("portal/course_nav");
            ?>
	</div>
	<div id="halaman">
	</div>
	<div class="clear"></div>
	<div>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="scheweek">
		<tr>
			<td class="yip">Senin</td>
			<td class="yip">Selasa</td>
			<td class="yip">Rabu</td>
			<td class="yip">Kamis</td>
			<td class="yip">Jumat</td>
			<td class="yip">Sabtu</td>
			<td class="yip">Minggu</td>
		</tr>
		<tr>
                   	<?php foreach ($courses as $course) { ?>
                            <td>
                            <?php foreach ($course as $row) { ?>
                                <?php if (!empty($row['list_jadwal'])) { ?>
                                    <?php foreach ($row['list_jadwal'] as $jadwal) {?>
                                        <div class="wal">
                                                <p><a href="" class="wal2"><?php echo $jadwal['kode_pelatihan']."-".$jadwal['angkatan']; ?></a></p>
                                                <p><?php echo $jadwal['jam_mulai']; ?>-<?php echo $jadwal['jam_selesai']; ?></p>
                                                <p>Sesi <?php echo $jadwal['nomor_sesi']; ?></p>
                                                <p><?php echo $row['nama_ruangan'] ?></p>
                                                <p>
                                                    <?php 
                                                    for($i=0;$i<count($jadwal['list_pengajar']);$i++){
                                                        echo $jadwal['list_pengajar'][$i]['nama'];
                                                        if($i+1!=(count($jadwal['list_pengajar'])))
                                                            echo ', ';                            
                                                    }
                                                    ?>

                                                </p>
                                        </div>
                                    <?php } ?>
                                <?php }?>
                            <?php }?>
                            </td>
                        <?php } ?>

		</tr>

	</table>

	</div>
</div>